﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace TCS.Web
{
    public partial class ListEnt : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BindList();
            BindLeft();
        }
        void BindList()
        {
            TCS.BLL.MemberInfo bll = new TCS.BLL.MemberInfo();
            DataSet ds = new DataSet();
            //ds = bll.GetList("", "MemberID desc");
            this.rptList.DataSource = ds;
            this.rptList.DataBind();

        }
        void BindLeft()
        {
            DataSet ds = new TCS.BLL.Products.Product().GetImgListByCategoryID(10, "");
            this.rptImgList.DataSource = ds;
            this.rptImgList.DataBind();

            DataSet dsNews = new TCS.BLL.NewsManage.News().GetNewsTopList(8, -1);
            this.rptHotList_Left.DataSource = dsNews;
            this.rptHotList_Left.DataBind();
        }
    }
}
